/**
* 版权声明：厦门睿商网络科技有限公司 版权所有 违者必究
* 日    期：2021-01-09
*/
package com.rzico.basics.controller.member;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.rzico.annotation.Log;
import com.rzico.base.BaseController;
import com.rzico.base.CommResult;
import com.rzico.basics.entity.ChefLaud;
import com.rzico.basics.entity.Member;
import com.rzico.basics.service.ChefLaudService;
import com.rzico.basics.service.MemberService;
import com.rzico.entity.PageResult;
import com.rzico.entity.Pageable;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang3.time.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 名厨点赞控制层
 *
 * @author Rzico Boot
 * @version 1.0
 * @date 2021-01-09
 */
@Api(description = "名厨点赞接口")
@RestController
@RequestMapping("/member/chefLaud")
public class ChefLaudMemberController extends BaseController {

    @Autowired
    private ChefLaudService chefLaudService;

    /**
     * 保存名厨点赞
     *
     * @param chefLaud
     * @return
     */
    @ApiOperation("保存名厨点赞")
    @PostMapping("/save")
    public CommResult<ChefLaud> save(@RequestBody ChefLaud chefLaud) {
        ChefLaud result = chefLaudService.save(chefLaud);
        if (result == null) {
            return CommResult.error("点赞失败");
        }
        return CommResult.success(result);
    }



}
